﻿//
Ext.onReady(function() {
    Ext.BLANK_IMAGE_URL = "s.gif";
    Ext.QuickTips.init();
    this.Store1 = new Coolite.Ext.Store({
        id: "Store1",
        ajaxEventConfig: {
            formProxyArg: "form1"
        },
        reader: new Ext.data.JsonReader({
            fields: [{
                name: "Title"
            },
            {
                name: "Username"
            }],
                id: "EmployeeID"
            }),
            autoLoad: true
        });
        Store1.proxy = new Ext.data.PagingMemoryProxy(Store1_Data, false);
        this.GridView1 = new Ext.grid.GridView({
            proxyId: "GridView1",
            getRowClass: function(record, index, rowParams, store) {
                rowParams.body = '<p>' + record.data.Notes + '</p>';
                return 'x-grid3-row-expanded';
            },
            enableRowBody: true
        });
        this.RowSelectionModel1 = new Ext.grid.RowSelectionModel({
            proxyId: "RowSelectionModel1"
        });
        this.ColumnModel1 = new Ext.grid.ColumnModel({
            proxyId: "ColumnModel1",
            columns: [{
                width: 150,
                sortable: true,
                header: "Title",
                dataIndex: "Title"
            },
        {
            width: 150,
            sortable: true,
            header: "Username",
            dataIndex: "Username"
}]
        });
        this.GridPanel1 = new Coolite.Ext.GridPanel({
            id: "GridPanel1",
            renderTo: "GridPanel1_Container",
            height: 600,
            title: "Sessions",
            frame: true,
            selectionMemory: false,
            view: this.GridView1,
            store: Store1,
            sm: this.RowSelectionModel1,
            cm: this.ColumnModel1,
            selModelHidden: "GridPanel1_SM"
        });
        Ext.Msg.minWidth = 200;
        if (window.OnExtReady) {
            OnExtReady();
        }
    });
   